<template>
  <div id="editor">
    <div
      :style="{
      borderRadius:styles.circle+'px',
      marginTop:styles.marginTop+'px',
       marginBottom:styles.marginBottom+'px',
        marginLeft:styles.marginLR+'px',
         marginRight:styles.marginLR+'px',
         backgroundColor:styles.colorBg,
    }"
    >
      <div class="ql-editor" v-html="styles.html"></div>
    </div>
  </div>
</template>

<script>
import "quill/dist/quill.core.css";
import "quill/dist/quill.snow.css";
import "quill/dist/quill.bubble.css";
import { mapState, mapMutations } from "vuex";
export default {
  name: "editor",
  data() {
    return {};
  },
  props: ["styles"],
};
</script>

<style lang="less" scoped>
#editor {
  >div{
    background-color: #fff;
  }
}
</style>
